#import "CCScene.h"
#import "CCLayer.h"
#import "CCNode.h"
#import "CGPointExtension.h"
#import "CCActionInterval.h"

@protocol ReplaceLayerActionDelegate

- (void)layerReplaced;

@end



@interface ReplaceLayerAction : CCActionInterval 
{
	CCScene *scene;
	CCLayer <ReplaceLayerActionDelegate> *layer;
	CCLayer *replaceLayer;
	bool reverse;
}

@property (nonatomic) bool reverse;

-(id) initWithScene:(CCScene*)_scene layer:(CCLayer<ReplaceLayerActionDelegate>*)_layer replaceLayer:(CCLayer*)_replaceLayer;

@end
